package com.zjh.dao;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "用户实体类", description = "用户信息描述类")
public class sysUserDao {

    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty("email")
    private String email;

    @ApiModelProperty("密码hash")
    private String passwordHash;

    @ApiModelProperty("姓氏")
    private String firstName;

    @ApiModelProperty("名字")
    private String lastName;

    @ApiModelProperty("创建时间")
    private LocalDateTime createdAt;

    @ApiModelProperty("上次更新时间")
    private LocalDateTime updatedAt;

    @ApiModelProperty("上次登陆时间")
    private LocalDateTime lastLogin;

    @ApiModelProperty("是否有效")
    private Boolean isActive = true;


}
